package com.example.K501;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
 
/**
 * This is where the user can view and plan their long-term and short-term lifestyle ideals.
 * @author WaltonWellness
 *
 */
public class LifestyleActivity extends Activity {
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.lifestyle_layout);
        
        ImageView nextActivity = (ImageView)findViewById(R.id.ivToDashboardScreen);
        nextActivity.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				 Intent i = new Intent(getApplicationContext(), PersonalizedPlan.class);
	              startActivity(i);
				
			}
		});
        
        ImageView backButton = (ImageView)findViewById(R.id.iBack);
        backButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
    }
}